<?php


namespace app\common\service;


/**
 * @purpose: 加班提成
 * Class MaleUser
 */
class AddService implements ProjectService
{
    /**
     * 显示提成
     * @param $order_type
     * @param $is_add
     * @param $project
     * @return mixed
     */
    public function showCommission($order_type,$is_add,$project)
    {
        //加班排钟提成
        if ($order_type == '1' && $is_add == '2') {
            $commission = $project['overtime_queue_rate'];
            return $commission;
        }
        //点钟加班提成
        if ($order_type== '2' && $is_add == '2') {
            $commission = $project['overtime_dot_rate'];
            return $commission;
        }
        //加班call钟提成
        if ($order_type == '3' && $is_add == '2') {
            $commission = $project['call_block_rate'];
            return $commission;
        }
        //加班优轮提成
        if ($order_type == '4' && $is_add == '2') {
            $commission = $project['overtime_queue_rate'];
            return $commission;
        }
        //加班加钟提成
        if ($order_type == '5' && $is_add == '2') {
            $commission = $project['overtime_add_block_rate'];
            return $commission;
        }

    }

}